﻿using System;
using CQRS.Events;

namespace CQRS.Sample.Domain.Commands
{
    public class RegisterPlaneRepairCommand : Command
    {
        public Guid PlaneId { get; set; }

        public DateTime RepairDate { get; set; }
        public string EffectuatedBy { get; set; }
        public string RepairedPart { get; set; }
        public string ChangedPart { get; set; }

        public RegisterPlaneRepairCommand(Guid planeId, DateTime repairDate, string effectuatedBy,
                string repairedPart, string changedPart)
        {
            PlaneId = planeId;
            RepairDate = repairDate;
            EffectuatedBy = effectuatedBy;
            RepairedPart = repairedPart;
            ChangedPart = changedPart;
        }
    }
}
